package internal

import (
	"context"

	fpyDcsDb "gf/fpy/dcs/db"
)

func init() {
	fpyDcsDb.SetSoPath("./fpy/dcs/db/.so/db.so")
	fpyDcsDb.SetDbUrl("http://192.168.8.101:11001")
	fpyDcsDb.SetDbSid("0ao6")
}

type CmsContentBigDao struct {
	sid 	string
	dbSid   string
	projectSid 	string
	table   string
	group   string
	columns TCmsContentBigColumns
}

type TCmsContentBigColumns struct {
    Sid    string
    AddTime    string
    UpdateTime    string
    IsDel    string
    ArticleSid    string
    FieldLine    string
    Field1    string
    Field2    string
    Field3    string
    Field4    string
    Field5    string
    Field6    string
    Field7    string
    Field8    string
    Field9    string
    Field10    string
}


var cCmsContentBigColumns = TCmsContentBigColumns{
    Sid:    "sid",
    AddTime:    "add_time",
    UpdateTime:    "update_time",
    IsDel:    "is_del",
    ArticleSid:    "article_sid",
    FieldLine:    "field_line",
    Field1:    "field_1",
    Field2:    "field_2",
    Field3:    "field_3",
    Field4:    "field_4",
    Field5:    "field_5",
    Field6:    "field_6",
    Field7:    "field_7",
    Field8:    "field_8",
    Field9:    "field_9",
    Field10:    "field_10",
}

func NewCmsContentBigDao() *CmsContentBigDao {
	return &CmsContentBigDao{
		sid: 	"0ape",
		dbSid:	"0ao6",
		projectSid:	"dbd3",
		group:   "cms",
		table:   "content_big",
		columns: cCmsContentBigColumns,
	}
}

func (dao *CmsContentBigDao) Columns() TCmsContentBigColumns {
	return dao.columns
}

func (dao *CmsContentBigDao) Group() string {
	return dao.group
}

func (dao *CmsContentBigDao) Table() string {
	return dao.table
}

func (dao *CmsContentBigDao) Ctx(ctx context.Context) *fpyDcsDb.TDb {
	return fpyDcsDb.Ctx(ctx).Table(dao.sid).FpyProjectSid(dao.projectSid)
}